"""
演示各种运算符
"""
# 算数运算符
print("1 + 1 = ",1 + 1)
print("2 - 1 = ",2 - 1)
print("3 * 3 = ",3 * 3)
print("8 / 2 = ",8 / 2)
print("11 // 2 = ",11 // 2)
print("9 % 2 = ",9 % 2)
print("2 ** 2= ",2 ** 2)
# 赋值运算符
num = 1+2*3
print("1+2*3=",1+2*3)
# 复合赋值运算符
num = 1
num += 1                 #num += 1==num=num+1
print("num += 1:",num)
num -= 1
print("num -= 1:",num)
num *= 4
print("num *= 4:",num)
num /= 2
print("num /= 2:",num)
num %= 3
print("num %:",num)
num **= 2
print("num **2:",num)
num //= 3
print("num //3:",num)
